//
//  BidLoadingView.m
//  KKZ
//
//  Created by  on 11-7-27.
//  Copyright 2011年 Tsinghua University. All rights reserved.
//

#import "BidLoadingView.h"

@implementation BidLoadingView

- (id)initWithFrame:(CGRect)frame
{
    self = [super initWithFrame:frame];
    if (self) {
        
        // Set the icon image on background
        iconImage_ = [[UIImageView alloc] initWithFrame:CGRectMake(0, 0, 0, 0)];
        iconImage_.image = [UIImage imageNamed:@""];
        
        // Set the indicator view
        indicatorView_ = [[UIActivityIndicatorView alloc] initWithActivityIndicatorStyle:UIActivityIndicatorViewStyleWhiteLarge];
        indicatorView_.frame = CGRectMake(0, 0, 0, 0);
        [indicatorView_ startAnimating];
        
        // Set the view background
        self.backgroundColor = [UIColor colorWithPatternImage:[UIImage imageNamed:@""]];
        
    }
    return self;
}

- (void)dealloc
{
    indicatorView_ = nil;
    iconImage_ = nil;
    
    [super dealloc];
}

@end
